import axios from "axios";

const contentPath = '/marketing/carousel'

export const save = (carousel: any) => {
    return axios.post(`${contentPath}`, carousel)
}

export const removeById = (id: number) => {
    return axios.delete(`${contentPath}/${id}`)
}

export const list = () => {
  return axios.get(`${contentPath}/list`)
}

export const getById = (id: number) => {
    return axios.get(`${contentPath}/${id}`)
}